﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class player: actionable
    {
        public string Player { get; get; }
        public player(string player)
        {
            this.Player = player;

        }
        public int fingerGuess(int p)
        {

            int Result;


            switch (p)
            {
                case 1:
                    Console.WriteLine( Player +"出剪刀");
                    Result = 1;
                    break;

                case 2:
                    Console.WriteLine(Player + "出石头");
                    Result = 2;
                    break;

                case 3:
                    Console.WriteLine(Player + "出布");
                    Result = 3;
                    break;

                default:
                    Result = 1;
                    break;


            }
            return Result;
        }
    }
}
